package com.woniuxy.lrz.carlproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品附件表
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
@TableName("good_attachment")
@ApiModel(value = "GoodAttachment对象", description = "商品附件表")
public class GoodAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "good_attachement_id", type = IdType.AUTO)
    private Integer goodAttachementId;

    @ApiModelProperty("原文件名")
    private String oldFile;

    @ApiModelProperty("现文件名")
    private String newFile;

    @ApiModelProperty("大小")
    private Long size;

    @ApiModelProperty("文件路径")
    private String ilePath;

    @ApiModelProperty("文件后缀")
    private String fileSuffix;

    @ApiModelProperty("关联商品id")
    private Integer goodId;

    public Integer getGoodAttachementId() {
        return goodAttachementId;
    }

    public void setGoodAttachementId(Integer goodAttachementId) {
        this.goodAttachementId = goodAttachementId;
    }

    public String getOldFile() {
        return oldFile;
    }

    public void setOldFile(String oldFile) {
        this.oldFile = oldFile;
    }

    public String getNewFile() {
        return newFile;
    }

    public void setNewFile(String newFile) {
        this.newFile = newFile;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getIlePath() {
        return ilePath;
    }

    public void setIlePath(String ilePath) {
        this.ilePath = ilePath;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    @Override
    public String toString() {
        return "GoodAttachment{" +
        "goodAttachementId = " + goodAttachementId +
        ", oldFile = " + oldFile +
        ", newFile = " + newFile +
        ", size = " + size +
        ", ilePath = " + ilePath +
        ", fileSuffix = " + fileSuffix +
        ", goodId = " + goodId +
        "}";
    }
}
